package com.chongba.schedule.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

@Data
@ToString
@NoArgsConstructor

@TableName("taskinfo")
public class TaskInfoEntity implements Serializable {
    /*
    `task_id` bigint(20) NOT NULL    comment '任务id',
  `execute_time` datetime(3) NOT NULL comment '执行时间',
  `parameters` longblob            comment '参数',
  `priority` int(11) NOT NULL      comment '优先级',
  `task_type` int(11) NOT NULL     comment '任务类型',
     */

    private static final long serialVersionUID = -3218564191925663119L;

    @TableId(type = IdType.ID_WORKER)
    private Long taskId;

    @TableField
    private Date executeTime;

    @TableField
    private Integer priority;

    @TableField
    private Integer taskType;

    @TableField
    private byte[] parameters;
}
